﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ConfigurationTool
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        TextBox tx;
        public Form2(TextBox t)
        {
            InitializeComponent();
            tx = t;
        }

        private void Form2_KeyDown(object sender, KeyEventArgs e)
        {
            tx.Text = e.KeyCode.ToString();
            this.Close();
        }

    }
}
